#ifndef KEYNUM_H
#define KEYNUM_H

#include <QWidget>
#include "mybutton.h"
#include "showlabel.h"

class KeyNum : public QWidget
{
    Q_OBJECT
public:
    explicit KeyNum(QWidget *parent = 0);
    Button* createButton(int x, int y,const QString &num, const char *member);
    void setItem(QString itemName);
    void showRet(QString ret);
    QString getValue();
signals:

public slots:
    void digitClicked();
    void backspaceClicked();
    void cleanClicked();
private:
    Button * keyC;
    Button * keyB;
    Button *digitButtons[10];
    QLabel * label_pic_bg;
    ShowLabel *display;
    ShowLabel *item;
};

#endif // KEYNUM_H
